package com.zkthink.ceres.member.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "MemberVO", description = "商城会员信息")
@AllArgsConstructor
public class ClhMemberVo implements Serializable {
    private Long id;
    /**
     * 会员昵称
     */
    @ApiModelProperty(value = "会员昵称")
    @Length(max = 20, message = "会员昵称长度不能超过20")
    @Excel(name = "会员昵称")
    private String nickname;

    /**
     * 会员头像
     */
    @ApiModelProperty(value = "会员头像")
    @Length(max = 500, message = "会员头像长度不能超过500")
    @Excel(name = "会员头像")
    private String headimg;
    /**
     * 会员手机号
     */
    @ApiModelProperty(value = "会员手机号")
    @Length(max = 16, message = "会员手机号长度不能超过16")
    @Excel(name = "会员手机号")
    private String phone;
    /**
     * 车牌号
     */
    @ApiModelProperty(value = "车牌号")
    @TableField("account")
    private String licensePlate;
    /**
     * vip到期时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "vip到期时间")
    @TableField("vip_time")
    private LocalDateTime vipTime;
    /**
     * 消费金
     */
    @ApiModelProperty("消费金")
    @TableField("coupons")
    private BigDecimal coupons;
    /**
     * 余额
     */
    @ApiModelProperty("余额")
    @TableField("balance")
    private BigDecimal balance;
    /**
     * 提成
     */
    @ApiModelProperty(value = "提成")
    @TableField("tichneg")
    private BigDecimal tichneg;
    private Boolean b=false;

    private BigDecimal recommend = new BigDecimal(0);

}
